class CreateAlertRules < ActiveRecord::Migration[7.2]
  def change
    create_table :alert_rules do |t|
      t.string :name
      t.string :code
      t.string :category
      t.string :metric
      t.string :condition
      t.string :level
      t.decimal :threshold
      t.integer :frequency
      t.boolean :is_enabled
      t.text :description

      t.timestamps
    end
  end
end
